#include "mainwindow.h"
#include "ui_mainwindow.h"
#include<QFile>

QString loadQSS()
{
   QFile file(":/style.qss");
   file.open(QFile::ReadOnly);

   QString style=file.readAll();
   file.close();
   return style;

}

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
     const QString& style = loadQSS();
    this->setStyleSheet(style);
}

MainWindow::~MainWindow()
{
    delete ui;
}

